package com.qf.lanzhou.shop.pojo.entity;

import lombok.Data;

/**
 * 收货地址实体类
 *
 * @author jack
 */
@Data
public class ReceivingAddress {
    private Long id;
    private Long userId;
    private String addressInformation;
    private String addressDetails;
    private Long postalCode;
    private String receivingName;
    private Long receivingPhone;
    private Long defaultState;

    //收货地址 省 市 区 街
    private String addressProvince;
    private String addressCity;
    private String addressDistrict;
    private String addressStreet;

    public ReceivingAddress(Long userId, String addressDetails, Long postalCode, String receivingName, Long receivingPhone, Long defaultState, String addressProvince, String addressCity, String addressDistrict, String addressStreet) {
        this.userId = userId;
        this.addressDetails = addressDetails;
        this.postalCode = postalCode;
        this.receivingName = receivingName;
        this.receivingPhone = receivingPhone;
        this.defaultState = defaultState;
        this.addressProvince = addressProvince;
        this.addressCity = addressCity;
        this.addressDistrict = addressDistrict;
        this.addressStreet = addressStreet;
    }

    public ReceivingAddress() {
    }
    //     `id` bigint NOT NULL AUTO_INCREMENT COMMENT '收货地址',
    //            `address_information` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '地址信息',
    //            `address_details` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '详细地址',
    //            `postal_code` bigint DEFAULT NULL COMMENT '邮箱编码',
    //            `receiving_name` varchar(22) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '收货人名字',
    //            `receiving_phone` bigint NOT NULL COMMENT '收货人电话',
    //            `default_state` bigint NOT NULL COMMENT '默认状态 0：不为默认 1：为默认 ',
    //            `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
    //            `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '生成时间',
    //            `user_id` bigint NOT NULL COMMENT ' 买家id',
    //    PRIMARY KEY (`id`) USING BTREE
    //) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
    //      `address_province` varchar(255) NOT NULL COMMENT '收货省份',
    //            `address_city` varchar(255) NOT NULL COMMENT '收货市',
    //            `address_district` varchar(255) NOT NULL COMMENT '收货区',
    //            `address_street` varchar(255) NOT NULL COMMENT '收货街',
}
